const { homePage } = require('../controller/goods')
const { signinPage, signupPage, profilePage, } = require('../controller/user')
const { isLogin } = require('../middleware/user')

const router = require("koa-router")()

// 配置路由
// 首页
router.get("/", isLogin(), homePage)
// 登录
router.get("/signin", signinPage)
// 注册
router.get("/signup", signupPage)
// 个人中心
router.get("/user", isLogin(), profilePage)

module.exports = router
